package com.gitee.wsl.compose.ui.theme

import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.staticCompositionLocalOf

internal val LocalCompactMode = staticCompositionLocalOf { true }


@Composable
fun CompactMode(enabled: Boolean = true, content: @Composable () -> Unit) {
    CompositionLocalProvider(
        LocalCompactMode provides enabled,
        content = content
    )
}